﻿using System;

namespace KuiHuaBaoDian.Services.UGUI.Tips {

    public readonly struct TipsGroupID {

        public Guid GUID { get; init; }

        public override bool Equals(object obj) {
            if (obj is TipsGroupID other) {
                return other.GUID == GUID;
            }
            return false;
        }

        public override int GetHashCode() => GUID.GetHashCode();

        public static bool operator ==(TipsGroupID left, TipsGroupID right) => left.Equals(right);
        public static bool operator !=(TipsGroupID left, TipsGroupID right) => !left.Equals(right);
    }
}
